package hu.bme.mit.rifl.business.nodes;

import hu.bme.mit.rifl.business.base.WFElement;
import hu.bme.mit.rifl.business.shared.Coordinator;

/**
 * Worker node which serves the order if the repository test returns an
 * "FEASIBLE" state.
 */
public class ServeOrder extends WFElement {

	public ServeOrder(Coordinator coordinator) {
		super(coordinator, "ServeOrder");
	}

	@Override
	public void process() {
		this.order.setState("GETTINGSERVED");
		this.order.setStateCodes(5);
	}
}
